#include "initramfs.h"
#include <stdio.h>
#include <string.h>

int main(int argc, char **argv)
{
	int inode_number = 1;
	int i;
	FILE *f;
	
	initramfs_node_t nodes[argc - 2];
	
	f = fopen(argv[1], "wb");
	
	if(f == NULL)
	{
		return 0;
	}
	
	for(i = 2; i < argc; i++)
	{
		nodes[i - 2].identify = 0xABCDEF;
		strcpy(nodes[i - 2].name, argv[i]);
	}
	
	for(i = 0; i < argc - 2; i++)
		fwrite(&nodes[i], sizeof(initramfs_node_t), 1, f);
	fclose(f);
	
	return 0;
}
